import request from '@/utils/request'

//用户管理
export function selectalluser(params) {
  return request({
    url: '/api/getAlluser',
    method: 'get',
    params
  })
}

export function selectuserbyid(params) {
  return request({
    url: '/api/get_byuserid',
    method: 'get',
    params
  })
}


export function deleteuser(params) {
  return request({
    url: '/api/delete_user',
    method: 'post',
    params
  })
}

export function updateuser(params) {
  return request({
    url: '/api/update_user',
    method: 'post',
    params
  })
}

export function createuser(params) {
  return request({
    url: '/api/insert_user',
    method: 'post',
    params
  })
}